FHIR © HL7.org  |  Server Home  |  FHIR Server FHIR Server 3.4.11  |  FHIR Version n/a  User: [n/a]

Resource StructureMap/FHIR Server from package hl7.fhir.uv.xver#current (15 ms)

Package hl7.fhir.uv.xver
Type StructureMap
Id Id
FHIR Version R5
Source http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-SupplyDelivery3to2.html
Url http://hl7.org/fhir/StructureMap/SupplyDelivery3to2
Version 0.1.0
Status active
Date 2024-02-22T03:16:50+00:00
Name SupplyDelivery3to2
Title SupplyD3 to R2elivery Transforms: R
Experimental False
Realm uv
Authority hl7
Description SupplyD3toR2eliveryTransformsR

Resources that use this resource

No resources found


Resources that this resource uses

No resources found



Narrative

Note: links and images are rebased to the (stated) source

/// url = 'http://hl7.org/fhir/StructureMap/SupplyDelivery3to2'
/// name = 'SupplyDelivery3to2'
/// title = 'SupplyD3 to R2elivery Transforms: R'
/// status = 'active'

uses "http://hl7.org/fhir/3.0/SupplyDelivery" alias SupplyDelivery as source
uses "http://hl7.org/fhir/1.0/SupplyDelivery" alias SupplyDeliveryR2 as target

imports "http://hl7.org/fhir/StructureMap/*3to2"

group SupplyDelivery(source src : SupplyDelivery, target tgt : SupplyDeliveryR2) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier "SupplyDelivery-identifier";
  src.status -> tgt.status "SupplyDelivery-status";
  src.patient -> tgt.patient "SupplyDelivery-patient";
  src.type -> tgt.type "SupplyDelivery-type";
  src.suppliedItem as v then sdvItem(v, tgt) "SupplyDelivery-suppliedItem";
  src.supplier -> tgt.supplier "SupplyDelivery-supplier";
  src.extension as e where e.url = 'http://hl7.org/fhir/SupplyDelivery-r2-whenPrepared' -> tgt.whenPrepared = (e.value) "SupplyDelivery-whenPrepared";
  src.occurrence as v where v.is(dateTime) -> tgt.time = v "SupplyDelivery-time";
  src.destination -> tgt.destination "SupplyDelivery-destination";
  src.receiver -> tgt.receiver "SupplyDelivery-receiver";
}

group sdvItem(source src, target tgt) extends BackboneElement {
  src.quantity -> tgt.quantity "item-quantity";
  src.item -> tgt.suppliedItem "item-quantity";
}


Source

{
  "resourceType" : "StructureMap",
  "id" : "SupplyDelivery3to2",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/SupplyDelivery3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'SupplyDelivery3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'SupplyD3 to R2elivery Transforms: R'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/3.0/SupplyDelivery<span style=\"color: navy\">&quot; </span><b>alias </b>SupplyDelivery <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/1.0/SupplyDelivery<span style=\"color: navy\">&quot; </span><b>alias </b>SupplyDeliveryR2 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/StructureMap/*3to2<span style=\"color: navy\">&quot;\r\n</span>\r\n<b>group </b>SupplyDelivery<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>SupplyDelivery, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>SupplyDeliveryR2<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span> src.identifier<span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier <i>&quot;SupplyDelivery-identifier&quot;</i><span style=\"color: navy\">;</span>\r\n src.status<span style=\"color: navy\"><b> -&gt; </b></span>tgt.status <i>&quot;SupplyDelivery-status&quot;</i><span style=\"color: navy\">;</span>\r\n src.patient<span style=\"color: navy\"><b> -&gt; </b></span>tgt.patient <i>&quot;SupplyDelivery-patient&quot;</i><span style=\"color: navy\">;</span>\r\n src.type<span style=\"color: navy\"><b> -&gt; </b></span>tgt.type <i>&quot;SupplyDelivery-type&quot;</i><span style=\"color: navy\">;</span>\r\n src.suppliedItem<b> as </b><span style=\"color: maroon\">v</span><b> then </b>sdvItem<span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span> <i>&quot;SupplyDelivery-suppliedItem&quot;</i><span style=\"color: navy\">;</span>\r\n src.supplier<span style=\"color: navy\"><b> -&gt; </b></span>tgt.supplier <i>&quot;SupplyDelivery-supplier&quot;</i><span style=\"color: navy\">;</span>\r\n src.extension<b> as </b><span style=\"color: maroon\">e</span><b> where </b>e.url = 'http://hl7.org/fhir/SupplyDelivery-r2-whenPrepared'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.whenPrepared = <span style=\"color: navy\">(</span>e.value<span style=\"color: navy\">)</span> <i>&quot;SupplyDelivery-whenPrepared&quot;</i><span style=\"color: navy\">;</span>\r\n src.occurrence<b> as </b><span style=\"color: maroon\">v</span><b> where </b>v.is(dateTime)<span style=\"color: navy\"><b> -&gt; </b></span>tgt.time = <span style=\"color: maroon\">v</span> <i>&quot;SupplyDelivery-time&quot;</i><span style=\"color: navy\">;</span>\r\n src.destination<span style=\"color: navy\"><b> -&gt; </b></span>tgt.destination <i>&quot;SupplyDelivery-destination&quot;</i><span style=\"color: navy\">;</span>\r\n src.receiver<span style=\"color: navy\"><b> -&gt; </b></span>tgt.receiver <i>&quot;SupplyDelivery-receiver&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>sdvItem<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.quantity<span style=\"color: navy\"><b> -&gt; </b></span>tgt.quantity <i>&quot;item-quantity&quot;</i><span style=\"color: navy\">;</span>\r\n src.item<span style=\"color: navy\"><b> -&gt; </b></span>tgt.suppliedItem <i>&quot;item-quantity&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode" : "fhir"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger" : 1,
      "_valueInteger" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode" : "draft",
      "_valueCode" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    }
  ],
  "url" : "http://hl7.org/fhir/StructureMap/SupplyDelivery3to2",
  "version" : "0.1.0",
  "name" : "SupplyDelivery3to2",
  "title" : "SupplyD3 to R2elivery Transforms: R",
  "status" : "active",
  "date" : "2024-02-22T03:16:50+00:00",
  "publisher" : "HL7 International / FHIR Infrastructure",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description" : "SupplyD3toR2eliveryTransformsR",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/3.0/SupplyDelivery",
      "mode" : "source",
      "alias" : "SupplyDelivery"
    },
    {
      "url" : "http://hl7.org/fhir/1.0/SupplyDelivery",
      "mode" : "target",
      "alias" : "SupplyDeliveryR2"
    }
  ],
  "import" : [
    "http://hl7.org/fhir/StructureMap/*3to2"
  ],
  "group" : [
    {
      "name" : "SupplyDelivery",
      "extends" : "DomainResource",
      "typeMode" : "type-and-types",
      "input" : [
        {
          "name" : "src",
          "type" : "SupplyDelivery",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "type" : "SupplyDeliveryR2",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "SupplyDelivery-identifier",
          "source" : [
            {
              "context" : "src",
              "element" : "identifier",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "identifier",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "SupplyDelivery-status",
          "source" : [
            {
              "context" : "src",
              "element" : "status",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "status",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "SupplyDelivery-patient",
          "source" : [
            {
              "context" : "src",
              "element" : "patient",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "patient",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "SupplyDelivery-type",
          "source" : [
            {
              "context" : "src",
              "element" : "type",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "type",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "SupplyDelivery-suppliedItem",
          "source" : [
            {
              "context" : "src",
              "element" : "suppliedItem",
              "variable" : "v"
            }
          ],
          "dependent" : [
            {
              "name" : "sdvItem",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueId" : "tgt"
                }
              ]
            }
          ]
        },
        {
          "name" : "SupplyDelivery-supplier",
          "source" : [
            {
              "context" : "src",
              "element" : "supplier",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "supplier",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "SupplyDelivery-whenPrepared",
          "source" : [
            {
              "context" : "src",
              "element" : "extension",
              "variable" : "e",
              "condition" : "e.url = 'http://hl7.org/fhir/SupplyDelivery-r2-whenPrepared'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "whenPrepared",
              "transform" : "evaluate",
              "parameter" : [
                {
                  "valueString" : "e.value"
                }
              ]
            }
          ]
        },
        {
          "name" : "SupplyDelivery-time",
          "source" : [
            {
              "context" : "src",
              "element" : "occurrence",
              "variable" : "v",
              "condition" : "v.is(dateTime)"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "time",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "v"
                }
              ]
            }
          ]
        },
        {
          "name" : "SupplyDelivery-destination",
          "source" : [
            {
              "context" : "src",
              "element" : "destination",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "destination",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "SupplyDelivery-receiver",
          "source" : [
            {
              "context" : "src",
              "element" : "receiver",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "receiver",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "sdvItem",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "item-quantity",
          "source" : [
            {
              "context" : "src",
              "element" : "quantity",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "quantity",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "item-quantity",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "suppliedItem",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.